import request from "../utils/request";
// 支出表数据接口
export const getpropertymsgApi = () =>
  request({
    url: "/getpropertymsg",
    method: "GET",
  });

// 添加信息
export const addpropertymsgApi = (department, quantity, type, balance, date) =>
  request({
    url: "/addpropertymsg",
    method: "POST",
    data: {
      department,
      quantity,
      type,
      balance,
      date,
    },
  });

// 删除信息
export const delpropertymsgApi = (multipleSelection) =>
  request({
    url: "/delpropertymsg",
    method: "POST",
    data: {
      multipleSelection,
    },
  });
// 搜索信息
export const searchpropertymsgApi = (tit) =>
  request({
    url: "/searchpropertymsg",
    method: "POST",
    data: { tit },
  });
